<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>输入文本波形动画</title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <div class="input_box">
    <input type="text" required>
    <label>Wavy&nbsp;Input&nbsp;Text&nbsp;Aimation</label>
  </div>
</body>
<script>
  let label = document.querySelector('label')
  label.innerHTML = label.innerText.split('').map((letters, i) => {
    return `<span style="transition-delay: ${i * 30}ms;filter: hue-rotate(${i * 10}deg)">${letters}</span>`
  }).join('')
</script>

</html>